package com.sunjian.service.impl;

import com.sunjian.dao.db2.HouseDao;
import com.sunjian.entity.House;
import com.sunjian.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouseServiceImpl implements HouseService {
    @Autowired
    private HouseDao houseDao;

    @Override
    public List<House> queryAllHouse() {
        return houseDao.queryAllHouse();
    }

    @Override
    public House findMoneyById(int id) {
        return houseDao.findMoneyById(id);
    }
}
